<?php
class DbMap
{
	private $host;
	private $user;
	private $password;
	private $database;
	private $table;
	private $columns;
	
	private $alias;

	public function __construct()
	{
		$this->columns = array();
		$this->alias = null;
	}

	public function getHost()
	{
		return $this->host;
	}

	public function getUser()
	{
		return $this->user;
	}

	public function getPassword()
	{
		return $this->password;
	}

	public function getDatabase()
	{
		return $this->database;
	}

	public function getTable()
	{
		if ($this->alias != null)
			return $this->table.' '.$this->alias;
		else
			return $this->table;
	}

	public function getRawTable()
	{
		return $this->table;
	}

	public function getColumns()
	{
		return $this->columns;
	}
	
	public function getAlias()
	{
		return $this->alias;
	}
	
	public function setHost($hst)
	{
		$this->host = $hst;
	}

	public function setUser($usr)
	{
		$this->user = $usr;
	}

	public function setPassword($pwd)
	{
		$this->password = $pwd;
	}
	public function setDatabase($db)
	{
		$this->database = $db;
	}

	public function setTable($tbl)
	{
		$this->table = $tbl;
	}

	public function setColumns($cols)
	{
		$this->columns = $cols;
	}
	
	public function setAlias($a)
	{
		$this->alias = $a;
	}
}
?>